package samples.examples.photo_swipe.application ;

import divtastic.js.DisplayDiv ;
import divtastic.js.application.views.WindowView ;
import samples.examples.photo_swipe.views.PicSwipeView;


class Controller
{
    
    
    private var _holder :DisplayDiv;
    
    
    
    public function new( holder_: DisplayDiv )
    {
        
        _holder                 = holder_ ;
        var photoWindow         = new DisplayDiv() ;
        _holder.addChild( photoWindow ) ;
        var windowView          = new WindowView( photoWindow, 'Africa Safari - Photo Swipe Example', 49, 129, 420, 380, '#9d9e6a' ) ;//320,330
        new PicSwipeView( photoWindow, windowView ) ;
        
    }
    
    
}